package com.huayun.code.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "code-gen")
public class CodeGenConfig {

    private String catalog;
    private String table;
    private String model;
    private String requestMapping;
    private String basePackage;
    private String sourceFolder;
    private boolean enableSubPackage;
    private boolean console;
    private boolean commonFieldFilter;

    public String getCatalog() {
        return catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getSourceFolder() {
        return sourceFolder;
    }

    public void setSourceFolder(String sourceFolder) {
        this.sourceFolder = sourceFolder;
    }

    public boolean isEnableSubPackage() {
        return enableSubPackage;
    }

    public void setEnableSubPackage(boolean enableSubPackage) {
        this.enableSubPackage = enableSubPackage;
    }

    public boolean isConsole() {
        return console;
    }

    public void setConsole(boolean console) {
        this.console = console;
    }

    public boolean isCommonFieldFilter() {
        return commonFieldFilter;
    }

    public void setCommonFieldFilter(boolean commonFieldFilter) {
        this.commonFieldFilter = commonFieldFilter;
    }
}
